//
//  HJButton.m
//  KaiChat
//
//  Created by lx on 2023/10/17.
//

#import "HJStyle1Button.h"

@implementation HJStyle1Button

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.addCornerRadius(10);
        
        [self setBackgroundImage:[UIImage imageWithColor:UIColor.tj_8667FEColor] forState:UIControlStateNormal];
//        [self setBackgroundImage:[UIImage imageWithColor:UIColor.tj_8667FEColor] forState:UIControlStateDisabled];
        [self setBackgroundImage:[UIImage imageWithColor:UIColor.tj_6D4DE7Color] forState:UIControlStateHighlighted];
        [self setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
        [self setTitleColor:UIColor.tj_disabledColor forState:UIControlStateDisabled];

    }
    return self;
}

@end
